module.exports = {
    name: 'topics',
    data() {
        return {
            topicList: [
                [{
                        img: '../../../../../assets/2.png',
                        desc: '选择题',
                        title: '多选题'
                    },
                    {
                        img: '../../../../../assets/2.png',
                        desc: '单选题',
                        title: '单选题'
                    },
                    {
                        img: '../../../../../assets/2.png',
                        desc: '判断题',
                        title: '判断题'
                    },
                    {
                        img: '../../../../../assets/2.png',
                        desc: '问答题',
                        title: '问答题'
                    },
                    {
                        img: '../../../../../assets/2.png',
                        desc: '选择日期',
                        title: '选择日期'
                    },
                    {
                        img: '../../../../../assets/2.png',
                        desc: '选择时间',
                        title: '选择时间'
                    },
                    {
                        img: '../../../../../assets/2.png',
                        desc: '选择数字',
                        title: '选择数字'
                    }
                ]
            ]
        }
    },

    methods: {
        addQuestion() {
            alert('添加题型');
        },
        updateQuestion(question) {
            alert('编辑题型  ' + question.title);
        },
        deleteQuestion(question) {
            alert('删除题型  ' + question.title);
        }
    }
}